package com.navinfo.platform.dataanalysis.range;

import com.google.common.collect.Range;

/**
 * 转速区间
 *
 * @author machi
 * @create 2018/6/21
 */

public enum RotationRange {

    /**
     *
     */
    RPM_RANGE_650(Range.closedOpen(0,650)),
    RPM_RANGE_800(Range.closedOpen(650,800)),
    RPM_RANGE_1100(Range.closedOpen(800,1100)),
    RPM_RANGE_1400(Range.closedOpen(1100,1400)),
    RPM_RANGE_1700(Range.closedOpen(1400,1700)),
    RPM_RANGE_2000(Range.closedOpen(1700,2000)),
    RPM_RANGE_2300(Range.closedOpen(2000,2300)),
    RPM_RANGE_2600(Range.closedOpen(2300,2600)),
    RPM_RANGE_OVER_2600(Range.atLeast(2600)),
    RPM_RANGE_OVER_VALID(Range.closed(0,4000))
    ;

    private Range<Integer> range;

    RotationRange(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }



}
